package com.miplus.ccrm.core.service.cust;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.miplus.ccrm.common.CmdResVo;
import com.miplus.ccrm.common.JSysUser;
import com.miplus.ccrm.core.controller.vo.conf.AnnoEditReqVo;
import com.miplus.ccrm.core.controller.vo.conf.AnnoReqVo;
import com.miplus.ccrm.core.controller.vo.conf.AnnoResVo;
import com.miplus.ccrm.core.controller.vo.cust.*;
import com.miplus.ccrm.core.pojo.ConCustomer;
import com.baomidou.mybatisplus.extension.service.IService;

/**
* @author pc
* @description 针对表【con_customer(客户表)】的数据库操作Service
* @createDate 2024-03-14 11:23:47
*/
public interface ConCustomerService extends IService<ConCustomer> {

    IPage<CustResVo> customerQuery(JSysUser user, CustReqVo paras);

    CustResVo customerInfo(JSysUser user,String custid);

    CustResVo customerInfoByPhone(JSysUser user, String custphone);

    CmdResVo updateTags(CustTagReqVo paras);

    int addTag(String custid,String tid,String tagid);

    int addTag(String custid,String tid,String tagid,String batchid);

    int delTag(String batchid);

    int delTag(String custid,String tagid);

    String getCustNumber(String idnumber);

    String getCustId(String custid);

    int hasCustomer(String custnumber);

    CmdResVo custInsert(String $usrid, CustAddVo paras);

    CmdResVo custUpdate(String $usrid, CustEditVo paras);
}
